
option = {
    title : {
        text: '安全文化活动经费',
        x:'center'
    },
    
    tooltip : {
        trigger: 'axis'
    },
    /*legend: {
        data:['活动经费统计']  
    }, */
    grid: {
        top : '30%',
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    toolbox: {
        show : true,
        feature : {
            mark : {show: true},
            dataView : {show: true, readOnly: false},
            magicType : {show: true, type: ['line', 'bar']},
            restore : {show: true},
            saveAsImage : {show: true}
             }
    },
    calculable : true,
    xAxis : [
        {
            type : 'category',
            data : [<#if dataList?exists>                
                <#list dataList as obj>
                    <#if (obj_index > 0)>,</#if>
                    "${obj?c}"
                </#list>
            </#if>]
            
        }
    ],
    yAxis : [
        {
            type : 'value',
            name:'金额（元）',
            splitNumber:10
            
        }
        ],
    series : [
        {
            name:'活动经费统计',
            type:'bar',
            barWidth : 30,
            data:[<#if foundsList?exists>
                <#list foundsList as obj>
                 <#if (obj_index > 0)>,</#if>
                    "${obj?c}"
                </#list>
             </#if>],
             itemStyle:{
             normal:{
             color:function (value){
             <#if (dataList?size>0) >
                return "#"+("00000"+((Math.random()*16777215+0.5)>>0).toString(16)).slice(-6);
             </#if>
             }
             }
             },
            
             markPoint : {
                data : [
                    {type : 'max', name: '最大值'},
                    {type : 'min', name: '最小值'}
                ]
             },
             markLine : {
                data : [
                    {type : 'average', name: '平均值'}
                ]
            }
        }
    ]
}